<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Article文本</title>
  <link rel="stylesheet" href="../src/hans-ui.css">
</head>
<body>
  <div class="tt-content">
    <div class="tt-article fold">
      <h1 class="tt-article-title">作者: Hansen</h1>
      <div class="tt-article-content">
        <h2 class="tt-article-subtitle">锦瑟</h2>
        <p class="tt-article-subtitle">锦瑟无端五十弦，一弦一柱思华年。</p>
        <p class="tt-article-subtitle">庄生晓梦迷蝴蝶，望帝春心托杜鹃。</p>
        <p class="tt-article-subtitle">沧海月明珠有泪，蓝田日暖玉生烟。</p>
        <p class="tt-article-subtitle">此情可待成追忆？只是当时已惘然。</p>
        <img class="tt-article-img" src="https://img1.sycdn.imooc.com/5d3e50f40001906206400780.png" alt="测试图片">
      </div>
      <div class="tt-article-unfold-btn" id="js-unfold">
        <i class="fa fa-angle-double-down fa-vibrate-y"></i>
      </div>
    </div>
    <div class="tt-panel">
      <div class="tt-panel-title">其他内容</div>
      <div class="tt-panel-body">
        其他内容...
      </div>
    </div>
  </div>

  <script>
      window.onload = ()=>{
          // 展开文章
          document.querySelector('#js-unfold').onclick = (e) => {
              document.querySelector('.tt-article').classList.remove('fold');
          }
      };
  </script>
</body>
</html>